package com.example.mapper;

import com.example.entity.MonitoringData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.time.LocalDate;
import java.util.List;

@Mapper
public interface MonitoringDataMapper {
    List<MonitoringData> selectAll();
    List<MonitoringData> selectBySiteId(Integer siteId);
    List<MonitoringData> selectByRecordedAt(@Param("recordedAt") LocalDate recordedAt);
    List<MonitoringData> selectByFamilyId(Integer familyId);
    int deleteById(Long dataId);
    int insert(MonitoringData data);
    int update(MonitoringData data);
    MonitoringData selectById(Long dataId);
} 